#include<iostream>
using namespace std;
class Solution
{
public:
    bool canPermutePalindrome(string s)
    {
        int len = s.size();
        int ValArr[256] = { 0 };
        for (int i = 0; i < len; i++)
        {
            ValArr[s[i]]++;
        }
        int count = 0;

        for (int i = 0; i < 256; i++)
        {
            if (ValArr[i] % 2 == 1)
            {
                count++;
            }
        }
        if (count > 1)
        {
            return false;
        }
        return true;
    }
};


int main()
{
    string str("AaBbA//a");
    Solution s;
    int ret=s.canPermutePalindrome(str);
    cout << ret;
    return 0;
}